import { Module } from '@nestjs/common';
import { AdminModule } from './admin/admin.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { BoyModule } from './boy/boy.module';
import { ConfigModule } from './boy/config/config.module';
import { OrderModule } from './order/order.module';


@Module({
  imports: [TypeOrmModule.forRoot({
    type:'mysql',
    host:'localhost',
    port:3306,
    username:'root',
    password:'123456',
    database:'nest',
    retryDelay:500,
    retryAttempts:10,
    synchronize:true,
    autoLoadEntities:true,
  }),
  AdminModule, 
  BoyModule,
  ConfigModule,
  OrderModule],
  controllers: [],
  providers: [],
})
export class AppModule {}
